package BasicModel.Element.Component;

import java.util.LinkedList;

public class Variable {
	String name;
	// SimpleVariable or ComplexVariable
	boolean isSimple;
	LinkedList<String> range;

	
	public Variable(String name, Boolean isSim) {
		super();
		this.name = name;
		this.isSimple = isSim;
		this.range=new LinkedList<String>();
	}

	// gettet and setter
	public boolean getType() {
		return isSimple;
	}

	public void setType(Boolean isSim) {
		this.isSimple = isSim;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public LinkedList<String> getRange() {
		return range;
	}
	public void addRangEle(String ele){
		range.add(ele);
	}

	public void setRange(LinkedList<String> range) {
		this.range = range;
	}
}
